package cliente.conta;

import java.awt.event.ActionEvent;
import java.beans.PropertyChangeListener;

import javax.swing.AbstractAction;
import javax.swing.Action;

public class ExecutaEstornarItemConta extends AbstractAction {
	
	private EstornarItemConta estornarItemConta;

	/**
	 * 
	 */
	private static final long serialVersionUID = 312452347005112731L;

	public ExecutaEstornarItemConta(EstornarItemConta estornarItemConta) {
		setEstornarItemConta(estornarItemConta);
	}

	@Override
	public void actionPerformed(ActionEvent e) {
		if(e.getActionCommand().equals("fecha")){
			getEstornarItemConta().getTfEstornarItemConta().dispose();
		}
	}

	public void setEstornarItemConta(EstornarItemConta estornarItemConta) {
		this.estornarItemConta = estornarItemConta;
	}

	public EstornarItemConta getEstornarItemConta() {
		return estornarItemConta;
	}


	
}
